import Vue from 'vue'
import App from './App'

import ElementUI from 'element-ui' // api: https://github.com/ElemeFE/element
import 'element-ui/lib/theme-chalk/index.css' // element css
import VueRouter from 'vue-router'
import axios from "axios";

import 'element-theme-default';
import router from './router' //自动扫描里面的路由配置

Vue.config.productionTip = false

//显示声明使用VueRouter
// Vue.use(VueRouter)
Vue.use(ElementUI)
Vue.prototype.$http=axios;
new Vue({
  el: '#app',
  //配置路由
  router,
  components: { App },
  template: '<App/>'
}).$mount('#app')
